from amscms.user_settings.urls import urlpatterns
from django.conf.urls.defaults import patterns
from django.http import HttpResponse
from django.template import Template, RequestContext

def remote_user_auth_view(request):
    "Dummy view for remote user tests"
    t = Template("Username is {{ user }}.")
    c = RequestContext(request, {})
    return HttpResponse(t.render(c))

urlpatterns = urlpatterns + patterns('',
    (r'^remote_user', remote_user_auth_view),
    (r'^login/$', 'django.contrib.auth.views.login'),
    (r'^logout/$', 'amscms.core.views.core_logout'),
)